package com.husd.framework.test.primary;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class FooService {

    private FooRepository fooRepository;

    public FooService(@Autowired FooRepository fooRepository) {
        this.fooRepository = fooRepository;
    }

    public int getAge() {

        // ....
        return 10;
    }
}